﻿using Microsoft.EntityFrameworkCore.Metadata.Internal;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace S.Authorization.Domain.Model.User
{
    /// <summary>
    /// 紧急联系人
    /// </summary>
    [Table("EmergencyContact")]
    public class EmergencyContact
    {
        [Key]
        ///主键
        public int EmergencyContactId { get; set; }

        /// <summary>
        /// 用户主键
        /// </summary>
        public int UserId { get; set; }

        /// <summary>
        /// 联系手机号
        /// </summary>
        [Column(TypeName = "nvarchar(50)")]
        [MaxLength(50)]
        public string? ContactPhone { get; set; }

        /// <summary>
        /// 省
        /// </summary>
        [Column(TypeName = "nvarchar(50)")]
        [MaxLength(50)]
        public string Province { get; set; }

        /// <summary>
        /// 市
        /// </summary>
        [Column(TypeName = "nvarchar(50)")]
        [MaxLength(50)]
        public string City { get; set; }

        /// <summary>
        /// 区
        /// </summary>
        [Column(TypeName = "nvarchar(50)")]
        [MaxLength(50)]
        public string Area { get; set; }

        /// <summary>
        /// 紧急联系人地址
        /// </summary>
        [Column(TypeName = "nvarchar(50)")]
        [MaxLength(50)]
        public string ContactAddress { get; set; }
    }
}
